<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Incrementally deflate data</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.deflate-add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">deflate_add</h1>
  <p class="verinfo">(PHP 7)</p><p class="refpurpose"><span class="refname">deflate_add</span> &mdash; <span class="dc-title">Incrementally deflate data</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.deflate-add-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>deflate_add</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$context</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flush_mode</code><span class="initializer"> = ZLIB_SYNC_FLUSH</span></span>
  ] ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   Incrementally deflates data in the specified context.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.deflate-add-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<code class="parameter">context</code></dt>

    <dd>

     <p class="para">
      A context created with <span class="function"><a href="deflate_init.html" class="function">deflate_init()</a></span>.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">data</code></dt>

    <dd>

     <p class="para">
      A chunk of data to compress.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">flush_mode</code></dt>

    <dd>

     <p class="para">
      One of <strong><code>ZLIB_BLOCK</code></strong>,
      <strong><code>ZLIB_NO_FLUSH</code></strong>,
      <strong><code>ZLIB_PARTIAL_FLUSH</code></strong>,
      <strong><code>ZLIB_SYNC_FLUSH</code></strong> (default),
      <strong><code>ZLIB_FULL_FLUSH</code></strong>, <strong><code>ZLIB_FINISH</code></strong>.
      Normally you will want to set <strong><code>ZLIB_NO_FLUSH</code></strong> to
      maximize compression, and <strong><code>ZLIB_FINISH</code></strong> to terminate
      with the last chunk of data. See the <a href="http://www.zlib.net/manual.html" class="link external">&raquo;&nbsp;zlib manual</a> for a
      detailed description of these constants.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.deflate-add-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a chunk of compressed data,  或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.deflate-add-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   If invalid arguments are given, an error of level
   <strong><code>E_WARNING</code></strong> is generated.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.deflate-add-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="deflate_init.html" class="function" rel="rdfs-seeAlso">deflate_init()</a> - Initialize an incremental deflate context</span></li>
  </ul>
 </div>


</div></div></div></body></html>